package test;

import com.ch02.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName Mai
 * @Description TODO
 * @Author Kx
 * @Date 2025/4/27 10:47
 * @Version 1.0
 */
public class Mai {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        UserService s1 = context.getBean(UserService.class);
        UserService s2 = context.getBean(UserService.class);

        System.out.println(s1 == s2);
    }
}
